package com.baizhou.honglv.service;

import com.baizhou.honglv.dto.LoginSuccessDto;
import com.baizhou.honglv.dto.RegisterSuccessDto;
import com.baizhou.honglv.entity.User;
import com.baizhou.honglv.form.ChangeForm;
import com.baizhou.honglv.form.LoginForm;
import com.baizhou.honglv.form.PhoneNumberForm;
import com.baizhou.honglv.form.VerificationForm;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wanghaipeng
 * @since 2021-07-14
 */

public interface UserService  {
    /**
     * 添加一个用户
     * @param user
     */
    public void insert(User user);


    public User selectByid(User user);

    public List<User> selectAll();

//    public void updateByCode(User user);

    public void delete(User user);

    LoginSuccessDto login(LoginForm loginForm);

    void changePassword(ChangeForm changeForm);

    RegisterSuccessDto register(VerificationForm verificationForm);

    void deleteToken(String userId);

    public boolean SendNote(PhoneNumberForm phoneNumberForm);

    public boolean verification(VerificationForm verificationForm);
}
